var loginValidator;
var editor;

var modelObject = {
	init:function(){
		//--表单验证 start--
		loginValidator = $("#configPayForm").validate
		({
			rules: {
				seller: "required",
				partner: "required",
				key: "required",
				rsa: "required"
			},
			messages:{
				seller:"请填写账号",
				partner:"请填写pid",
				key:"请填写key",
				rsa:"请填写rsa"
			},
			submitHandler:function(form){
				if(confirm('不要随意修改，修改可能造成支付失败')) {
					form.submit();
				}
			}
		});
		//-- 表单验证 end --
		
		
	}
};

$(document).ready(function(){
	modelObject.init();
	
	$("#reset").click(function(){
		$("#seller").val("");
		$("#partner").val("");
		$("#key").val("");
		$("#rsa").val("");
	});
});